home *** CD-ROM | disk | FTP | other *** search
/ Codemasters Artwork Disc ECTS 2000 ( UK) / Codemasters - Artwork Disc ECTS 2000 (UK).bin / pc / xtras / medial~1 / setfx~1.dir / Internal_21_Initialization Scripts.ls < prev    next >
Encoding:
Text File  |  1998-12-01  |  1.0 KB  |  52 lines

  1. on startSetFX
  2.   global fxWindow
  3.   set fxWindow to the activeWindow
  4.   if fxWindow = the stage then
  5.     clearGlobals()
  6.   end if
  7.   if voidp(fxWindow) then
  8.     set fxWindow to the stage
  9.   end if
  10.   InitGlobals()
  11.   SetTextFields()
  12.   Dispatch()
  13. end
  14.  
  15. on closeWindow
  16.   global fxTrackingObj, fxWindow
  17.   if objectp(fxTrackingObj) and (the activeWindow = fxWindow) then
  18.     set fxTrackingObj to 0
  19.   end if
  20.   go("safeexit")
  21. end
  22.  
  23. on KillWindow
  24.   set the visible of the activeWindow to 0
  25.   forget(the activeWindow)
  26. end
  27.  
  28. on InitGlobals
  29.   global fxDisplayMember, fxTrackingObj
  30.   set fxDisplayMember to member "Alpha"
  31.   preLoad(fxDisplayMember)
  32.   if not objectp(fxTrackingObj) then
  33.     set fxTrackingObj to new(script "Tracking Object")
  34.     if not objectp(fxTrackingObj) then
  35.       alert("Something is amiss.  Unable to initiate tracking")
  36.     end if
  37.   end if
  38. end
  39.  
  40. on Dispatch
  41.   global fxTrackingObj
  42.   if validMember(fxTrackingObj) then
  43.     go("General Member Settings")
  44.   else
  45.     go("No Cast Chosen")
  46.   end if
  47. end
  48.  
  49. on SetTextFields
  50.   put " " into field "Help Text"
  51. end
  52.